package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.ZyBuilding;
import com.blb.zy_community.mapper.ZyBuildingMapper;
import com.blb.zy_community.service.IZyBuildingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * 楼栋  服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class ZyBuildingServiceImpl extends ServiceImpl<ZyBuildingMapper, ZyBuilding> implements IZyBuildingService {

    @Autowired
    private ZyBuildingMapper zyBuildingMapper;
    //页面展示及模糊查询
    @Override    public Page<ZyBuilding> getByBuilding(Long current, Long size, String buildingName, String buildingCode,Long communityId) {

        return zyBuildingMapper.selectZyBuilding(new Page<>(current,size), buildingName,buildingCode,communityId);
    }
    //模糊查询
    @Override
    public void deleteBuilds(Long[] buildIds) {
        zyBuildingMapper.deleteBuilds(buildIds);
    }


}
